﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using web.data.entities;
using web.bussines;
using Webdiyer.WebControls.Mvc;
using System.Web.UI;

namespace web.core.Models
{
    public class clientTestimonialsModels
    {
        //get all get all
        public static PagedList<client_testimonials> adm_client_testimonial_list(int pageindex, int pagesize, int language_id)
        {
            var obj = new client_testimonial_service();
            return obj.adm_client_testimonial_list(pageindex, pagesize, language_id);
        }

        public static List<client_testimonials> client_testimonial_list_by_status(int enable, int language_id)
        {
            var obj = new client_testimonial_service();
            return obj.client_testimonial_list_by_status(enable, language_id);
        }

        public static int adm_client_testimonial_update(client_testimonials it)
        {
            var obj = new client_testimonial_service();
            return obj.adm_client_testimonial_update(it);
        }
        //enable - disable  
        public static int updateStatus(int client_id, int enable)
        {
            var obj = new client_testimonial_service();
            return obj.updateStatus(client_id, enable);
        }

        //get items by id or code
        public static client_testimonials getByID(int id)
        {
             var obj = new client_testimonial_service();
             return obj.getByID(id);
        }

        //delete by id
        public static void deletePage(int id)
        {
            var obj = new client_testimonial_service();
            obj.deletePage(id);
        }
    }
}